Package pl.wendigo.chrome.api.runtime

Contains DevTools Protocol Runtime domain implementation accessible via RuntimeDomain class.

Types

AddBindingRequest
Link copied to clipboard
data class AddBindingRequest(name: String, executionContextId: ExecutionContextId?, executionContextName: String?)
Represents request frame that can be used with Runtime#addBinding operation call.
AwaitPromiseRequest
Link copied to clipboard
data class AwaitPromiseRequest(promiseObjectId: RemoteObjectId, returnByValue: Boolean?, generatePreview: Boolean?)
Represents request frame that can be used with Runtime#awaitPromise operation call.
AwaitPromiseResponse
Link copied to clipboard
data class AwaitPromiseResponse(result: RemoteObject, exceptionDetails: ExceptionDetails?)
Represents response frame that is returned from Runtime#awaitPromise operation call.
BindingCalledEvent
Link copied to clipboard
data class BindingCalledEvent(name: String, payload: String, executionContextId: ExecutionContextId) : Event
Notification is issued every time when binding is called.
CallArgument
Link copied to clipboard
data class CallArgument(value: JsonElement?, unserializableValue: UnserializableValue?, objectId: RemoteObjectId?)
Represents function call argument.
CallFrame
Link copied to clipboard
data class CallFrame(functionName: String, scriptId: ScriptId, url: String, lineNumber: Int, columnNumber: Int)
Stack entry for runtime errors and assertions.
CallFunctionOnRequest
Link copied to clipboard
data class CallFunctionOnRequest(functionDeclaration: String, objectId: RemoteObjectId?, arguments: List<CallArgument>?, silent: Boolean?, returnByValue: Boolean?, generatePreview: Boolean?, userGesture: Boolean?, awaitPromise: Boolean?, executionContextId: ExecutionContextId?, objectGroup: String?)
Represents request frame that can be used with Runtime#callFunctionOn operation call.
CallFunctionOnResponse
Link copied to clipboard
data class CallFunctionOnResponse(result: RemoteObject, exceptionDetails: ExceptionDetails?)
Represents response frame that is returned from Runtime#callFunctionOn operation call.
CompileScriptRequest
Link copied to clipboard
data class CompileScriptRequest(expression: String, sourceURL: String, persistScript: Boolean, executionContextId: ExecutionContextId?)
Represents request frame that can be used with Runtime#compileScript operation call.
CompileScriptResponse
Link copied to clipboard
data class CompileScriptResponse(scriptId: ScriptId?, exceptionDetails: ExceptionDetails?)
Represents response frame that is returned from Runtime#compileScript operation call.
ConsoleAPICalledEvent
Link copied to clipboard
data class ConsoleAPICalledEvent(type: String, args: List<RemoteObject>, executionContextId: ExecutionContextId, timestamp: Timestamp, stackTrace: StackTrace?, context: String?) : Event
Issued when console API was called.
CustomPreview
Link copied to clipboard
data class CustomPreview(header: String, bodyGetterId: RemoteObjectId?)
EntryPreview
Link copied to clipboard
data class EntryPreview(key: ObjectPreview?, value: ObjectPreview)
EvaluateRequest
Link copied to clipboard
data class EvaluateRequest(expression: String, objectGroup: String?, includeCommandLineAPI: Boolean?, silent: Boolean?, contextId: ExecutionContextId?, returnByValue: Boolean?, generatePreview: Boolean?, userGesture: Boolean?, awaitPromise: Boolean?, throwOnSideEffect: Boolean?, timeout: TimeDelta?, disableBreaks: Boolean?, replMode: Boolean?, allowUnsafeEvalBlockedByCSP: Boolean?, uniqueContextId: String?)
Represents request frame that can be used with Runtime#evaluate operation call.
EvaluateResponse
Link copied to clipboard
data class EvaluateResponse(result: RemoteObject, exceptionDetails: ExceptionDetails?)
Represents response frame that is returned from Runtime#evaluate operation call.
ExceptionDetails
Link copied to clipboard
data class ExceptionDetails(exceptionId: Int, text: String, lineNumber: Int, columnNumber: Int, scriptId: ScriptId?, url: String?, stackTrace: StackTrace?, exception: RemoteObject?, executionContextId: ExecutionContextId?)
Detailed information about exception (or error) that was thrown during script compilation or execution.
ExceptionRevokedEvent
Link copied to clipboard
data class ExceptionRevokedEvent(reason: String, exceptionId: Int) : Event
Issued when unhandled exception was revoked.
ExceptionThrownEvent
Link copied to clipboard
data class ExceptionThrownEvent(timestamp: Timestamp, exceptionDetails: ExceptionDetails) : Event
Issued when exception was thrown and unhandled.
ExecutionContextCreatedEvent
Link copied to clipboard
data class ExecutionContextCreatedEvent(context: ExecutionContextDescription) : Event
Issued when new execution context is created.
ExecutionContextDescription
Link copied to clipboard
data class ExecutionContextDescription(id: ExecutionContextId, origin: String, name: String, uniqueId: String, auxData: JsonElement?)
Description of an isolated world.
ExecutionContextDestroyedEvent
Link copied to clipboard
data class ExecutionContextDestroyedEvent(executionContextId: ExecutionContextId) : Event
Issued when execution context is destroyed.
ExecutionContextId
Link copied to clipboard
typealias ExecutionContextId = Int

Id of an execution context.

GetHeapUsageResponse
Link copied to clipboard
data class GetHeapUsageResponse(usedSize: Double, totalSize: Double)
Represents response frame that is returned from Runtime#getHeapUsage operation call.
GetIsolateIdResponse
Link copied to clipboard
data class GetIsolateIdResponse(id: String)
Represents response frame that is returned from Runtime#getIsolateId operation call.
GetPropertiesRequest
Link copied to clipboard
data class GetPropertiesRequest(objectId: RemoteObjectId, ownProperties: Boolean?, accessorPropertiesOnly: Boolean?, generatePreview: Boolean?)
Represents request frame that can be used with Runtime#getProperties operation call.
GetPropertiesResponse
Link copied to clipboard
data class GetPropertiesResponse(result: List<PropertyDescriptor>, internalProperties: List<InternalPropertyDescriptor>?, privateProperties: List<PrivatePropertyDescriptor>?, exceptionDetails: ExceptionDetails?)
Represents response frame that is returned from Runtime#getProperties operation call.
GlobalLexicalScopeNamesRequest
Link copied to clipboard
data class GlobalLexicalScopeNamesRequest(executionContextId: ExecutionContextId?)
Represents request frame that can be used with Runtime#globalLexicalScopeNames operation call.
GlobalLexicalScopeNamesResponse
Link copied to clipboard
data class GlobalLexicalScopeNamesResponse(names: List<String>)
Represents response frame that is returned from Runtime#globalLexicalScopeNames operation call.
InspectRequestedEvent
Link copied to clipboard
data class InspectRequestedEvent(_object: RemoteObject, hints: JsonElement) : Event
Issued when object should be inspected (for example, as a result of inspect() command line API call).
InternalPropertyDescriptor
Link copied to clipboard
data class InternalPropertyDescriptor(name: String, value: RemoteObject?)
Object internal property descriptor.
ObjectPreview
Link copied to clipboard
data class ObjectPreview(type: String, subtype: String?, description: String?, overflow: Boolean, properties: List<PropertyPreview>, entries: List<EntryPreview>?)
Object containing abbreviated remote object value.
PrivatePropertyDescriptor
Link copied to clipboard
data class PrivatePropertyDescriptor(name: String, value: RemoteObject?, get: RemoteObject?, set: RemoteObject?)
Object private field descriptor.
PropertyDescriptor
Link copied to clipboard
data class PropertyDescriptor(name: String, value: RemoteObject?, writable: Boolean?, get: RemoteObject?, set: RemoteObject?, configurable: Boolean, enumerable: Boolean, wasThrown: Boolean?, isOwn: Boolean?, symbol: RemoteObject?)
Object property descriptor.
PropertyPreview
Link copied to clipboard
data class PropertyPreview(name: String, type: String, value: String?, valuePreview: ObjectPreview?, subtype: String?)
QueryObjectsRequest
Link copied to clipboard
data class QueryObjectsRequest(prototypeObjectId: RemoteObjectId, objectGroup: String?)
Represents request frame that can be used with Runtime#queryObjects operation call.
QueryObjectsResponse
Link copied to clipboard
data class QueryObjectsResponse(objects: RemoteObject)
Represents response frame that is returned from Runtime#queryObjects operation call.
ReleaseObjectGroupRequest
Link copied to clipboard
data class ReleaseObjectGroupRequest(objectGroup: String)
Represents request frame that can be used with Runtime#releaseObjectGroup operation call.
ReleaseObjectRequest
Link copied to clipboard
data class ReleaseObjectRequest(objectId: RemoteObjectId)
Represents request frame that can be used with Runtime#releaseObject operation call.
RemoteObject
Link copied to clipboard
data class RemoteObject(type: String, subtype: String?, className: String?, value: JsonElement?, unserializableValue: UnserializableValue?, description: String?, objectId: RemoteObjectId?, preview: ObjectPreview?, customPreview: CustomPreview?)
Mirror object referencing original JavaScript object.
RemoteObjectId
Link copied to clipboard
typealias RemoteObjectId = String

Unique object identifier.

RemoveBindingRequest
Link copied to clipboard
data class RemoveBindingRequest(name: String)
Represents request frame that can be used with Runtime#removeBinding operation call.
RunScriptRequest
Link copied to clipboard
data class RunScriptRequest(scriptId: ScriptId, executionContextId: ExecutionContextId?, objectGroup: String?, silent: Boolean?, includeCommandLineAPI: Boolean?, returnByValue: Boolean?, generatePreview: Boolean?, awaitPromise: Boolean?)
Represents request frame that can be used with Runtime#runScript operation call.
RunScriptResponse
Link copied to clipboard
data class RunScriptResponse(result: RemoteObject, exceptionDetails: ExceptionDetails?)
Represents response frame that is returned from Runtime#runScript operation call.
RuntimeDomain
Link copied to clipboard
class RuntimeDomain : Domain
Runtime domain exposes JavaScript runtime by means of remote evaluation and mirror objects.
ScriptId
Link copied to clipboard
typealias ScriptId = String

Unique script identifier.

SetAsyncCallStackDepthRequest
Link copied to clipboard
data class SetAsyncCallStackDepthRequest(maxDepth: Int)
Represents request frame that can be used with Runtime#setAsyncCallStackDepth operation call.
SetCustomObjectFormatterEnabledRequest
Link copied to clipboard
data class SetCustomObjectFormatterEnabledRequest(enabled: Boolean)
Represents request frame that can be used with Runtime#setCustomObjectFormatterEnabled operation call.
SetMaxCallStackSizeToCaptureRequest
Link copied to clipboard
data class SetMaxCallStackSizeToCaptureRequest(size: Int)
Represents request frame that can be used with Runtime#setMaxCallStackSizeToCapture operation call.
StackTrace
Link copied to clipboard
data class StackTrace(description: String?, callFrames: List<CallFrame>, parent: StackTrace?, parentId: StackTraceId?)
Call frames for assertions or error messages.
StackTraceId
Link copied to clipboard
data class StackTraceId(id: String, debuggerId: UniqueDebuggerId?)
If debuggerId is set stack trace comes from another debugger and can be resolved there.
TimeDelta
Link copied to clipboard
typealias TimeDelta = Double

Number of milliseconds.

Timestamp
Link copied to clipboard
typealias Timestamp = Double

Number of milliseconds since epoch.

UniqueDebuggerId
Link copied to clipboard
typealias UniqueDebuggerId = String

Unique identifier of current debugger.

UnserializableValue
Link copied to clipboard
typealias UnserializableValue = String

Primitive value which cannot be JSON-stringified. Includes values -0, NaN, Infinity, -Infinity, and bigint literals.